local UI = {}
local CSUI = SgsUI.Editor.UI

local LuaGameObject = require("Input.Entity.GameObject")

function UI.newObject(node)
    return LuaGameObject.new(node)
end

function UI.newNode(param)
    local ret = UI.newObject(CSUI.CreateNode())
    return ret
end

function UI.newSprite(param)
    local ret = UI.newObject(CSUI.CreateSprite())
    return ret
end

function UI.newLabel(param)
    local ret = UI.newObject(CSUI.CreateLabel())
    return ret
end

return UI